import $http from './http';

//查询所有未读消息总数
export const getTotalCount = data => {
    return $http.post('/business/warn_user/getTotalCount', data);
};

//查询报警 故障 离线的未读消息数
export const getCountList = data => {
    return $http.post('/business/warn_user/getCountList', data);
};

//查询报警 故障 离线的列表
export const getList = data => {
    return $http.post('/business/warn_user/getList', data);
};

//更改已读未读状态
export const setReadById = data => {
    return $http.post('/business/warn_user/setReadById', data);
};

//将状态设置为全部已读
export const setReadAll = data => {
    return $http.post('/business/warn_user/setReadAll', data);
};